<script>
    var now = new Date("2022-08-09");
    // now.setFullYear(2022);
    // now.setMonth(7);
    console.log(now.getFullYear() + "-" + (now.getMonth()+1) + "-" + now.getDate());
</script>